package com.jiujichina.service.impl;
/**
 * Created by liyi on 2018/5/31.
 */
import com.jiujichina.mapper.TbUserMapper;
import com.jiujichina.model.TbUser;
import com.jiujichina.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : liyi
 * @program : springboot-provider-user
 * @description : 用户管理
 * @create: 2018-05-31 14-59
 **/
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    TbUserMapper baseMapper;

    @Override
    public TbUser getById(Integer id) {
        return (TbUser)baseMapper.selectById(id);
    }

    @Override
    public List<TbUser> getList() {
        return baseMapper.getList();
    }


}
